import 'normalize.css'
import 'hover.css/css/hover-min.css'
import 'vue2-animate/dist/vue2-animate.min.css'
import 'virtual:windi.css'
import { createApp } from 'vue'
import App from './App.vue'
import { setupNaive } from '@renderer/plugins/naive'
import router, { setupRouter } from '@renderer/router'
import { setupStore } from '@renderer/store'

async function bootstrap() {
  const app = createApp(App)

  // 注册全局naive组件
  setupNaive(app)

  setupStore(app)

  await setupRouter(app)

  await router.isReady()
  // 挂载
  app.mount('#app', true)
}

void bootstrap()
